import request from '@/utils/request'

// 查询追溯码列表
export function listYiqiTraceCode(query) {
  return request({
    url: '/trace/yiqiTraceCode/list',
    method: 'get',
    params: query
  })
}

// 查询追溯码详细
export function getYiqiTraceCode(id) {
  return request({
    url: '/trace/yiqiTraceCode/' + id,
    method: 'get'
  })
}

// 新增追溯码
export function addYiqiTraceCode(data) {
  return request({
    url: '/trace/yiqiTraceCode',
    method: 'post',
    data: data
  })
}

// 修改追溯码
export function updateYiqiTraceCode(data) {
  return request({
    url: '/trace/yiqiTraceCode',
    method: 'put',
    data: data
  })
}

// 删除追溯码
export function delYiqiTraceCode(id) {
  return request({
    url: '/trace/yiqiTraceCode/' + id,
    method: 'delete'
  })
}
